<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
 <head>
  <title></title>
  <link href="<%=basePath %>web/index_css.css" rel="stylesheet" type="text/css" />
 </head>
 <body>
<table border="0" width="100%" style="font-size: 14px;">
       <tr>
        <td colspan="4" align="center" style="font-size: 16px;color: #FD8305; font-weight: bold;">
          <c:if test="${'01' eq pm.datas[0].mtype}">
             我的兼职信息
          </c:if>
          <c:if test="${'02' eq pm.datas[0].mtype}">
             我的活动信息
          </c:if>
          <c:if test="${'03' eq pm.datas[0].mtype}">
             我的培训信息
          </c:if>
          <c:if test="${null eq pm.datas[0].mtype}">
             我的报名信息
          </c:if>
        </td>
       </tr> 
       <tr height="20" bgcolor="#FD8305" align="center" style="color: white;font-size: 13px;font-weight: bold;">
        <td width="60">信息编号</td>
        <td width="400">信息标题</td>
        <td width="60" align="center">报名时间</td>  
        <td width="100">是否通过审核</td>
       </tr>                                                                       
		<c:if test="${!empty pm.datas}">
		<c:forEach items="${pm.datas}" var="johninfo">
			<tr height="20">
				<td>
					&nbsp;${johninfo.jid }
				</td>
				<td>
				 <a href="<%=basePath%>job/${johninfo.aid }.html" target="_blank" style="text-decoration: underline;" >
					${johninfo.aname }
				 </a>
				</td>
				<td align="center">
					<fmt:formatDate value="${johninfo.jtime }" pattern="yyyy-MM-dd"/>
				</td>
				<td align="center">
					${johninfo.ispass }
				</td>
			</tr>
		</c:forEach>
		</c:if>
		<c:if test="${empty pm.datas}">
		<tr>
			<td colspan="4" align="center">
				没有找到相应的记录
			</td>
		</tr>
		</c:if>
		<c:if test="${null ne pm.datas[0].jid}">
		   <tr height="30">
		    <td colspan="4" align="right">
		    <pg:pager url="index!johnInfo.action" items="${pm.total}"
		export="currentPageNumber=pageNumber" maxPageItems="10"
		maxIndexPages="10">
		<pg:first>
		<a href="${pageUrl}&mid=${pm.datas[0].wid }&mtype=${pm.datas[0].mtype} ">首页</a>
		</pg:first>  
		                                 [第${currentPageNumber}页]/[共${pm.total}条记录]
		                                <pg:prev>
		<a href="${pageUrl }&mid=${pm.datas[0].wid }&mtype=${pm.datas[0].mtype} ">上一页</a>
		</pg:prev>
		<pg:pages>
		<c:choose>
			<c:when test="${currentPageNumber eq pageNumber}">
				<font color="red">${pageNumber }</font>
			</c:when>
			<c:otherwise>
				<a href="${pageUrl }">${pageNumber }</a>
			</c:otherwise>
		</c:choose>
		</pg:pages>
		<pg:next>
		<a href="${pageUrl }&mid=${pm.datas[0].wid }&mtype=${pm.datas[0].mtype} ">下一页</a>
		</pg:next>
		<pg:last>
		<a href="${pageUrl }&mid=${pm.datas[0].wid }&mtype=${pm.datas[0].mtype}  ">尾页</a>
		</pg:last>
		</pg:pager>
		   </td>
	 </tr>
	 </c:if>  
</table>  
</body>   
</html>                     